Column to subtotal
Subtotals
- Make sure the data you want to subtotal is in the following format: each column has a label in the first row and contains similar facts, and there are no blank rows or columns within the range.
- Click a cell in the column to subtotal. In the example above, you'd click a cell in the Sport column, column B.
- Click Sort Ascending
or Sort Descending
.
- On the Data menu, click Subtotals.
- In the At each change in box, click the column to subtotal. In the example above, you'd click the Sport column.
- In the Use function box, click the summary function you want to use to calculate the subtotals.
- In the Add subtotal to box, select the check box for each column that contains values you want to subtotal. In the example above, you'd select the Sales column.
- If you want an automatic page break after each subtotal, select the Page break between groups check box.
- If you want the subtotals to appear above the subtotaled rows instead of below, clear the Summary below data check box.
- Click OK.
Note You can use the Subtotals command again to add more subtotals with different summary functions. To avoid overwriting the existing subtotals, clear the Replace current subtotals check box.
Tip